stats: reproduce redundant TYPE tags problem in Prometheus.#27239
Merged
jmarantz merged 2 commits intoenvoyproxy:mainfrom May 8, 2023
Merged
stats: reproduce redundant TYPE tags problem in Prometheus.#27239jmarantz merged 2 commits intoenvoyproxy:mainfrom
jmarantz merged 2 commits intoenvoyproxy:mainfrom
Conversation
Signed-off-by: Joshua Marantz <jmarantz@google.com>
Signed-off-by: Joshua Marantz <jmarantz@google.com>
kyessenov
approved these changes
May 8, 2023
Contributor
Author
|
Thanks; this is just a new unit test so I don't think it needs senior maintainer approval. |
reskin89
pushed a commit
to reskin89/envoy
that referenced
this pull request
Jul 11, 2023
…xy#27239) Commit Message: Reproduces a scenario where it's difficult to use a streaming optimization for Prometheus stats based on scopes without introducing a bug. Context: Issue that /stats/prometheus endpoint takes too much much memory: Prometheus stats handler used too much memory. envoyproxy#16139 Solution for non-Prometheus endpoints to use less memory for /stats and run faster: admin: Streaming /stats implementation envoyproxy#19693 which I believe is working well. This solution mapped to Prometheus: Prom stats perf improvements envoyproxy#24998 A case where this solution has a duplicate# TYPE line due to two stats with the same tag-extracted-stat name from two different scopes: stats: prometheus scrape failed envoyproxy#27173 Note that the existing unit tests did not exercise that scenario so this PR adds a testcase. Signed-off-by: Joshua Marantz <jmarantz@google.com> Signed-off-by: Ryan Eskin <ryan.eskin89@protonmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Message: Reproduces a scenario where it's difficult to use a streaming optimization for Prometheus stats based on scopes without introducing a bug. Context:
# TYPEline due to two stats with the same tag-extracted-stat name from two different scopes: stats: prometheus scrape failed #27173Note that the existing unit tests did not exercise that scenario so this PR adds a testcase.
@rulex123 FYI
@zirain FYI
Additional Description:
Risk Level: low
Testing: just the new test
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a